package com.soma.game.entity;

import com.soma.game.enums.BooleanStatus;
import com.soma.game.enums.GameScoreType;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class GameScoreExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public GameScoreExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andIdIsNull() {
            addCriterion("id is null");
            return (Criteria) this;
        }

        public Criteria andIdIsNotNull() {
            addCriterion("id is not null");
            return (Criteria) this;
        }

        public Criteria andIdEqualTo(Long value) {
            addCriterion("id =", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotEqualTo(Long value) {
            addCriterion("id <>", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThan(Long value) {
            addCriterion("id >", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThanOrEqualTo(Long value) {
            addCriterion("id >=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThan(Long value) {
            addCriterion("id <", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThanOrEqualTo(Long value) {
            addCriterion("id <=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdIn(List<Long> values) {
            addCriterion("id in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotIn(List<Long> values) {
            addCriterion("id not in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdBetween(Long value1, Long value2) {
            addCriterion("id between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotBetween(Long value1, Long value2) {
            addCriterion("id not between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andGameIdIsNull() {
            addCriterion("game_id is null");
            return (Criteria) this;
        }

        public Criteria andGameIdIsNotNull() {
            addCriterion("game_id is not null");
            return (Criteria) this;
        }

        public Criteria andGameIdEqualTo(Long value) {
            addCriterion("game_id =", value, "gameId");
            return (Criteria) this;
        }

        public Criteria andGameIdNotEqualTo(Long value) {
            addCriterion("game_id <>", value, "gameId");
            return (Criteria) this;
        }

        public Criteria andGameIdGreaterThan(Long value) {
            addCriterion("game_id >", value, "gameId");
            return (Criteria) this;
        }

        public Criteria andGameIdGreaterThanOrEqualTo(Long value) {
            addCriterion("game_id >=", value, "gameId");
            return (Criteria) this;
        }

        public Criteria andGameIdLessThan(Long value) {
            addCriterion("game_id <", value, "gameId");
            return (Criteria) this;
        }

        public Criteria andGameIdLessThanOrEqualTo(Long value) {
            addCriterion("game_id <=", value, "gameId");
            return (Criteria) this;
        }

        public Criteria andGameIdIn(List<Long> values) {
            addCriterion("game_id in", values, "gameId");
            return (Criteria) this;
        }

        public Criteria andGameIdNotIn(List<Long> values) {
            addCriterion("game_id not in", values, "gameId");
            return (Criteria) this;
        }

        public Criteria andGameIdBetween(Long value1, Long value2) {
            addCriterion("game_id between", value1, value2, "gameId");
            return (Criteria) this;
        }

        public Criteria andGameIdNotBetween(Long value1, Long value2) {
            addCriterion("game_id not between", value1, value2, "gameId");
            return (Criteria) this;
        }

        public Criteria andUserIdIsNull() {
            addCriterion("user_id is null");
            return (Criteria) this;
        }

        public Criteria andUserIdIsNotNull() {
            addCriterion("user_id is not null");
            return (Criteria) this;
        }

        public Criteria andUserIdEqualTo(Long value) {
            addCriterion("user_id =", value, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdNotEqualTo(Long value) {
            addCriterion("user_id <>", value, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdGreaterThan(Long value) {
            addCriterion("user_id >", value, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdGreaterThanOrEqualTo(Long value) {
            addCriterion("user_id >=", value, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdLessThan(Long value) {
            addCriterion("user_id <", value, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdLessThanOrEqualTo(Long value) {
            addCriterion("user_id <=", value, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdIn(List<Long> values) {
            addCriterion("user_id in", values, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdNotIn(List<Long> values) {
            addCriterion("user_id not in", values, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdBetween(Long value1, Long value2) {
            addCriterion("user_id between", value1, value2, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdNotBetween(Long value1, Long value2) {
            addCriterion("user_id not between", value1, value2, "userId");
            return (Criteria) this;
        }

        public Criteria andTypeIsNull() {
            addCriterion("type is null");
            return (Criteria) this;
        }

        public Criteria andTypeIsNotNull() {
            addCriterion("type is not null");
            return (Criteria) this;
        }

        public Criteria andTypeEqualTo(GameScoreType value) {
            addCriterion("type =", value, "type");
            return (Criteria) this;
        }

        public Criteria andTypeNotEqualTo(GameScoreType value) {
            addCriterion("type <>", value, "type");
            return (Criteria) this;
        }

        public Criteria andTypeGreaterThan(GameScoreType value) {
            addCriterion("type >", value, "type");
            return (Criteria) this;
        }

        public Criteria andTypeGreaterThanOrEqualTo(GameScoreType value) {
            addCriterion("type >=", value, "type");
            return (Criteria) this;
        }

        public Criteria andTypeLessThan(GameScoreType value) {
            addCriterion("type <", value, "type");
            return (Criteria) this;
        }

        public Criteria andTypeLessThanOrEqualTo(GameScoreType value) {
            addCriterion("type <=", value, "type");
            return (Criteria) this;
        }

        public Criteria andTypeLike(GameScoreType value) {
            addCriterion("type like", value, "type");
            return (Criteria) this;
        }

        public Criteria andTypeNotLike(GameScoreType value) {
            addCriterion("type not like", value, "type");
            return (Criteria) this;
        }

        public Criteria andTypeIn(List<GameScoreType> values) {
            addCriterion("type in", values, "type");
            return (Criteria) this;
        }

        public Criteria andTypeNotIn(List<GameScoreType> values) {
            addCriterion("type not in", values, "type");
            return (Criteria) this;
        }

        public Criteria andTypeBetween(GameScoreType value1, GameScoreType value2) {
            addCriterion("type between", value1, value2, "type");
            return (Criteria) this;
        }

        public Criteria andTypeNotBetween(GameScoreType value1, GameScoreType value2) {
            addCriterion("type not between", value1, value2, "type");
            return (Criteria) this;
        }

        public Criteria andScoreIsNull() {
            addCriterion("score is null");
            return (Criteria) this;
        }

        public Criteria andScoreIsNotNull() {
            addCriterion("score is not null");
            return (Criteria) this;
        }

        public Criteria andScoreEqualTo(Long value) {
            addCriterion("score =", value, "score");
            return (Criteria) this;
        }

        public Criteria andScoreNotEqualTo(Long value) {
            addCriterion("score <>", value, "score");
            return (Criteria) this;
        }

        public Criteria andScoreGreaterThan(Long value) {
            addCriterion("score >", value, "score");
            return (Criteria) this;
        }

        public Criteria andScoreGreaterThanOrEqualTo(Long value) {
            addCriterion("score >=", value, "score");
            return (Criteria) this;
        }

        public Criteria andScoreLessThan(Long value) {
            addCriterion("score <", value, "score");
            return (Criteria) this;
        }

        public Criteria andScoreLessThanOrEqualTo(Long value) {
            addCriterion("score <=", value, "score");
            return (Criteria) this;
        }

        public Criteria andScoreIn(List<Long> values) {
            addCriterion("score in", values, "score");
            return (Criteria) this;
        }

        public Criteria andScoreNotIn(List<Long> values) {
            addCriterion("score not in", values, "score");
            return (Criteria) this;
        }

        public Criteria andScoreBetween(Long value1, Long value2) {
            addCriterion("score between", value1, value2, "score");
            return (Criteria) this;
        }

        public Criteria andScoreNotBetween(Long value1, Long value2) {
            addCriterion("score not between", value1, value2, "score");
            return (Criteria) this;
        }

        public Criteria andActiveFlgIsNull() {
            addCriterion("active_flg is null");
            return (Criteria) this;
        }

        public Criteria andActiveFlgIsNotNull() {
            addCriterion("active_flg is not null");
            return (Criteria) this;
        }

        public Criteria andActiveFlgEqualTo(BooleanStatus value) {
            addCriterion("active_flg =", value, "activeFlg");
            return (Criteria) this;
        }

        public Criteria andActiveFlgNotEqualTo(BooleanStatus value) {
            addCriterion("active_flg <>", value, "activeFlg");
            return (Criteria) this;
        }

        public Criteria andActiveFlgGreaterThan(BooleanStatus value) {
            addCriterion("active_flg >", value, "activeFlg");
            return (Criteria) this;
        }

        public Criteria andActiveFlgGreaterThanOrEqualTo(BooleanStatus value) {
            addCriterion("active_flg >=", value, "activeFlg");
            return (Criteria) this;
        }

        public Criteria andActiveFlgLessThan(BooleanStatus value) {
            addCriterion("active_flg <", value, "activeFlg");
            return (Criteria) this;
        }

        public Criteria andActiveFlgLessThanOrEqualTo(BooleanStatus value) {
            addCriterion("active_flg <=", value, "activeFlg");
            return (Criteria) this;
        }

        public Criteria andActiveFlgLike(BooleanStatus value) {
            addCriterion("active_flg like", value, "activeFlg");
            return (Criteria) this;
        }

        public Criteria andActiveFlgNotLike(BooleanStatus value) {
            addCriterion("active_flg not like", value, "activeFlg");
            return (Criteria) this;
        }

        public Criteria andActiveFlgIn(List<BooleanStatus> values) {
            addCriterion("active_flg in", values, "activeFlg");
            return (Criteria) this;
        }

        public Criteria andActiveFlgNotIn(List<BooleanStatus> values) {
            addCriterion("active_flg not in", values, "activeFlg");
            return (Criteria) this;
        }

        public Criteria andActiveFlgBetween(BooleanStatus value1, BooleanStatus value2) {
            addCriterion("active_flg between", value1, value2, "activeFlg");
            return (Criteria) this;
        }

        public Criteria andActiveFlgNotBetween(BooleanStatus value1, BooleanStatus value2) {
            addCriterion("active_flg not between", value1, value2, "activeFlg");
            return (Criteria) this;
        }

        public Criteria andCreatedByIsNull() {
            addCriterion("created_by is null");
            return (Criteria) this;
        }

        public Criteria andCreatedByIsNotNull() {
            addCriterion("created_by is not null");
            return (Criteria) this;
        }

        public Criteria andCreatedByEqualTo(Long value) {
            addCriterion("created_by =", value, "createdBy");
            return (Criteria) this;
        }

        public Criteria andCreatedByNotEqualTo(Long value) {
            addCriterion("created_by <>", value, "createdBy");
            return (Criteria) this;
        }

        public Criteria andCreatedByGreaterThan(Long value) {
            addCriterion("created_by >", value, "createdBy");
            return (Criteria) this;
        }

        public Criteria andCreatedByGreaterThanOrEqualTo(Long value) {
            addCriterion("created_by >=", value, "createdBy");
            return (Criteria) this;
        }

        public Criteria andCreatedByLessThan(Long value) {
            addCriterion("created_by <", value, "createdBy");
            return (Criteria) this;
        }

        public Criteria andCreatedByLessThanOrEqualTo(Long value) {
            addCriterion("created_by <=", value, "createdBy");
            return (Criteria) this;
        }

        public Criteria andCreatedByIn(List<Long> values) {
            addCriterion("created_by in", values, "createdBy");
            return (Criteria) this;
        }

        public Criteria andCreatedByNotIn(List<Long> values) {
            addCriterion("created_by not in", values, "createdBy");
            return (Criteria) this;
        }

        public Criteria andCreatedByBetween(Long value1, Long value2) {
            addCriterion("created_by between", value1, value2, "createdBy");
            return (Criteria) this;
        }

        public Criteria andCreatedByNotBetween(Long value1, Long value2) {
            addCriterion("created_by not between", value1, value2, "createdBy");
            return (Criteria) this;
        }

        public Criteria andCreatedDtIsNull() {
            addCriterion("created_dt is null");
            return (Criteria) this;
        }

        public Criteria andCreatedDtIsNotNull() {
            addCriterion("created_dt is not null");
            return (Criteria) this;
        }

        public Criteria andCreatedDtEqualTo(Date value) {
            addCriterion("created_dt =", value, "createdDt");
            return (Criteria) this;
        }

        public Criteria andCreatedDtNotEqualTo(Date value) {
            addCriterion("created_dt <>", value, "createdDt");
            return (Criteria) this;
        }

        public Criteria andCreatedDtGreaterThan(Date value) {
            addCriterion("created_dt >", value, "createdDt");
            return (Criteria) this;
        }

        public Criteria andCreatedDtGreaterThanOrEqualTo(Date value) {
            addCriterion("created_dt >=", value, "createdDt");
            return (Criteria) this;
        }

        public Criteria andCreatedDtLessThan(Date value) {
            addCriterion("created_dt <", value, "createdDt");
            return (Criteria) this;
        }

        public Criteria andCreatedDtLessThanOrEqualTo(Date value) {
            addCriterion("created_dt <=", value, "createdDt");
            return (Criteria) this;
        }

        public Criteria andCreatedDtIn(List<Date> values) {
            addCriterion("created_dt in", values, "createdDt");
            return (Criteria) this;
        }

        public Criteria andCreatedDtNotIn(List<Date> values) {
            addCriterion("created_dt not in", values, "createdDt");
            return (Criteria) this;
        }

        public Criteria andCreatedDtBetween(Date value1, Date value2) {
            addCriterion("created_dt between", value1, value2, "createdDt");
            return (Criteria) this;
        }

        public Criteria andCreatedDtNotBetween(Date value1, Date value2) {
            addCriterion("created_dt not between", value1, value2, "createdDt");
            return (Criteria) this;
        }

        public Criteria andLastUpByIsNull() {
            addCriterion("last_up_by is null");
            return (Criteria) this;
        }

        public Criteria andLastUpByIsNotNull() {
            addCriterion("last_up_by is not null");
            return (Criteria) this;
        }

        public Criteria andLastUpByEqualTo(Long value) {
            addCriterion("last_up_by =", value, "lastUpBy");
            return (Criteria) this;
        }

        public Criteria andLastUpByNotEqualTo(Long value) {
            addCriterion("last_up_by <>", value, "lastUpBy");
            return (Criteria) this;
        }

        public Criteria andLastUpByGreaterThan(Long value) {
            addCriterion("last_up_by >", value, "lastUpBy");
            return (Criteria) this;
        }

        public Criteria andLastUpByGreaterThanOrEqualTo(Long value) {
            addCriterion("last_up_by >=", value, "lastUpBy");
            return (Criteria) this;
        }

        public Criteria andLastUpByLessThan(Long value) {
            addCriterion("last_up_by <", value, "lastUpBy");
            return (Criteria) this;
        }

        public Criteria andLastUpByLessThanOrEqualTo(Long value) {
            addCriterion("last_up_by <=", value, "lastUpBy");
            return (Criteria) this;
        }

        public Criteria andLastUpByIn(List<Long> values) {
            addCriterion("last_up_by in", values, "lastUpBy");
            return (Criteria) this;
        }

        public Criteria andLastUpByNotIn(List<Long> values) {
            addCriterion("last_up_by not in", values, "lastUpBy");
            return (Criteria) this;
        }

        public Criteria andLastUpByBetween(Long value1, Long value2) {
            addCriterion("last_up_by between", value1, value2, "lastUpBy");
            return (Criteria) this;
        }

        public Criteria andLastUpByNotBetween(Long value1, Long value2) {
            addCriterion("last_up_by not between", value1, value2, "lastUpBy");
            return (Criteria) this;
        }

        public Criteria andLastUpDtIsNull() {
            addCriterion("last_up_dt is null");
            return (Criteria) this;
        }

        public Criteria andLastUpDtIsNotNull() {
            addCriterion("last_up_dt is not null");
            return (Criteria) this;
        }

        public Criteria andLastUpDtEqualTo(Date value) {
            addCriterion("last_up_dt =", value, "lastUpDt");
            return (Criteria) this;
        }

        public Criteria andLastUpDtNotEqualTo(Date value) {
            addCriterion("last_up_dt <>", value, "lastUpDt");
            return (Criteria) this;
        }

        public Criteria andLastUpDtGreaterThan(Date value) {
            addCriterion("last_up_dt >", value, "lastUpDt");
            return (Criteria) this;
        }

        public Criteria andLastUpDtGreaterThanOrEqualTo(Date value) {
            addCriterion("last_up_dt >=", value, "lastUpDt");
            return (Criteria) this;
        }

        public Criteria andLastUpDtLessThan(Date value) {
            addCriterion("last_up_dt <", value, "lastUpDt");
            return (Criteria) this;
        }

        public Criteria andLastUpDtLessThanOrEqualTo(Date value) {
            addCriterion("last_up_dt <=", value, "lastUpDt");
            return (Criteria) this;
        }

        public Criteria andLastUpDtIn(List<Date> values) {
            addCriterion("last_up_dt in", values, "lastUpDt");
            return (Criteria) this;
        }

        public Criteria andLastUpDtNotIn(List<Date> values) {
            addCriterion("last_up_dt not in", values, "lastUpDt");
            return (Criteria) this;
        }

        public Criteria andLastUpDtBetween(Date value1, Date value2) {
            addCriterion("last_up_dt between", value1, value2, "lastUpDt");
            return (Criteria) this;
        }

        public Criteria andLastUpDtNotBetween(Date value1, Date value2) {
            addCriterion("last_up_dt not between", value1, value2, "lastUpDt");
            return (Criteria) this;
        }

        public Criteria andUidIsNull() {
            addCriterion("uid is null");
            return (Criteria) this;
        }

        public Criteria andUidIsNotNull() {
            addCriterion("uid is not null");
            return (Criteria) this;
        }

        public Criteria andUidEqualTo(Long value) {
            addCriterion("uid =", value, "uid");
            return (Criteria) this;
        }

        public Criteria andUidNotEqualTo(Long value) {
            addCriterion("uid <>", value, "uid");
            return (Criteria) this;
        }

        public Criteria andUidGreaterThan(Long value) {
            addCriterion("uid >", value, "uid");
            return (Criteria) this;
        }

        public Criteria andUidGreaterThanOrEqualTo(Long value) {
            addCriterion("uid >=", value, "uid");
            return (Criteria) this;
        }

        public Criteria andUidLessThan(Long value) {
            addCriterion("uid <", value, "uid");
            return (Criteria) this;
        }

        public Criteria andUidLessThanOrEqualTo(Long value) {
            addCriterion("uid <=", value, "uid");
            return (Criteria) this;
        }

        public Criteria andUidIn(List<Long> values) {
            addCriterion("uid in", values, "uid");
            return (Criteria) this;
        }

        public Criteria andUidNotIn(List<Long> values) {
            addCriterion("uid not in", values, "uid");
            return (Criteria) this;
        }

        public Criteria andUidBetween(Long value1, Long value2) {
            addCriterion("uid between", value1, value2, "uid");
            return (Criteria) this;
        }

        public Criteria andUidNotBetween(Long value1, Long value2) {
            addCriterion("uid not between", value1, value2, "uid");
            return (Criteria) this;
        }

        public Criteria andIsRecordIsNull() {
            addCriterion("is_record is null");
            return (Criteria) this;
        }

        public Criteria andIsRecordIsNotNull() {
            addCriterion("is_record is not null");
            return (Criteria) this;
        }

        public Criteria andIsRecordEqualTo(BooleanStatus value) {
            addCriterion("is_record =", value, "isRecord");
            return (Criteria) this;
        }

        public Criteria andIsRecordNotEqualTo(BooleanStatus value) {
            addCriterion("is_record <>", value, "isRecord");
            return (Criteria) this;
        }

        public Criteria andIsRecordGreaterThan(BooleanStatus value) {
            addCriterion("is_record >", value, "isRecord");
            return (Criteria) this;
        }

        public Criteria andIsRecordGreaterThanOrEqualTo(BooleanStatus value) {
            addCriterion("is_record >=", value, "isRecord");
            return (Criteria) this;
        }

        public Criteria andIsRecordLessThan(BooleanStatus value) {
            addCriterion("is_record <", value, "isRecord");
            return (Criteria) this;
        }

        public Criteria andIsRecordLessThanOrEqualTo(BooleanStatus value) {
            addCriterion("is_record <=", value, "isRecord");
            return (Criteria) this;
        }

        public Criteria andIsRecordLike(BooleanStatus value) {
            addCriterion("is_record like", value, "isRecord");
            return (Criteria) this;
        }

        public Criteria andIsRecordNotLike(BooleanStatus value) {
            addCriterion("is_record not like", value, "isRecord");
            return (Criteria) this;
        }

        public Criteria andIsRecordIn(List<BooleanStatus> values) {
            addCriterion("is_record in", values, "isRecord");
            return (Criteria) this;
        }

        public Criteria andIsRecordNotIn(List<BooleanStatus> values) {
            addCriterion("is_record not in", values, "isRecord");
            return (Criteria) this;
        }

        public Criteria andIsRecordBetween(BooleanStatus value1, BooleanStatus value2) {
            addCriterion("is_record between", value1, value2, "isRecord");
            return (Criteria) this;
        }

        public Criteria andIsRecordNotBetween(BooleanStatus value1, BooleanStatus value2) {
            addCriterion("is_record not between", value1, value2, "isRecord");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}